package designPattern.composite;

/**
 * Created by cdxuhongya on 2017/1/9.
 */
public class Test {
    public static void main(String[] args) {
        Employer maneger = new ProgramManager("maneger");
        Employer programmer1 = new Programmer("programmer 1");
        Employer programmer2 = new Programmer("programmer 2");

        maneger.add(programmer1);
        maneger.add(programmer2);
    }
}
